home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / docinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-06-10  |  2.0 KB  |  87 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef DOCINFOS_H
  8. #define DOCINFOS_H
  9.  
  10. #include <QTabWidget>
  11.  
  12. #include "scribusapi.h"
  13. #include "documentinformation.h"
  14.  
  15. class QLineEdit;
  16. class QTextEdit;
  17. class QLabel;
  18. class QWidget;
  19. class QGridLayout;
  20.  
  21.  
  22. /*! \brief The DocInfos class is now part of the ReformDoc multi widgets storage.
  23. See reformdoc.h as reference. The return values are handled via. getDocInfo()
  24. method. It can be used as standalone widget. */
  25. class SCRIBUS_API DocInfos : public QTabWidget
  26. {
  27.     Q_OBJECT
  28.  
  29. public:
  30.     DocInfos( QWidget* parent, DocumentInformation& docInfo );
  31.     ~DocInfos() {};
  32.  
  33.     /*! \brief Class wide DocumentInformation& docInfo reference. */
  34.     DocumentInformation infos;
  35.  
  36.     /*! \brief Returns the changed values.
  37.     Used e.g. in ScribusMainWindow::SetupDoc().
  38.     \retval DocumentInformation structure */
  39.     DocumentInformation getDocInfo();
  40.  
  41.     /*! \brief (Re)loads the document informations.
  42.     See e.g. ReformDoc::restoreDefaults() */
  43.     void restoreDefaults();
  44.  
  45. protected:
  46.     QLineEdit* publisherEdit;
  47.     QLineEdit* dateEdit;
  48.     QLineEdit* typeEdit;
  49.     QLineEdit* formatEdit;
  50.     QLineEdit* identifierEdit;
  51.     QLineEdit* sourceEdit;
  52.     QLineEdit* languageEdit;
  53.     QLineEdit* relationEdit;
  54.     QLineEdit* coverageEdit;
  55.     QLineEdit* rightsEdit;
  56.     QLineEdit* titleEdit;
  57.     QLineEdit* authorEdit;
  58.  
  59.     QTextEdit* descriptionEdit;
  60.     QTextEdit* keywordsEdit;
  61.     QTextEdit* contributorsEdit;
  62.  
  63.     QLabel* authorLabel;
  64.     QLabel* titleLabel;
  65.     QLabel* publisherLabel;
  66.     QLabel* dateLabel;
  67.     QLabel* typeLabel;
  68.     QLabel* formatLabel;
  69.     QLabel* identifierLabel;
  70.     QLabel* sourceLabel;
  71.     QLabel* languageLabel;
  72.     QLabel* relationLabel;
  73.     QLabel* coverageLabel;
  74.     QLabel* rightsLabel;
  75.     QLabel* descriptionLabel;
  76.     QLabel* keywordsLabel;
  77.     QLabel* contributorsLabel;
  78.  
  79.     QGridLayout* layout1;
  80.     QGridLayout* layout2;
  81.  
  82.     QWidget* page1;
  83.     QWidget* page2;
  84. };
  85.  
  86. #endif // DOCINFOS_H
  87.